package com.hmdp.service;

import com.hmdp.dto.Result;
import com.hmdp.entity.VoucherOrder;
import com.baomidou.mybatisplus.extension.service.IService;


public interface IVoucherOrderService extends IService<VoucherOrder> {

    Result seckillVoucher2(Long voucherId) throws InterruptedException;

    Result voucher(Long voucherId);

    /*
    创建订单
     */
    void createVoucherOrder2(VoucherOrder voucherOrder);

    Result createVoucherOrder1(Long voucherId);
}
